class UserFriendListModel {
  List<UserFriendListItemModel>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  UserFriendListModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  UserFriendListModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => UserFriendListItemModel.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class UserFriendListItemModel {
  int? addGroup;
  String? avatarImg;
  String? backGroundImg;
  bool? bindFlag;
  String? briefIntroduction;
  String? chainAddress;
  int? createId;
  String? createTime;
  bool? giftPermission;
  int? id;
  String? inviteCode;
  int? inviteNum;
  bool? isCancellation;
  bool? isDelete;
  bool? isFreeze;
  bool? isSm;
  bool? isValid;
  String? lastLoginTime;
  int? levelId;
  int? modifyId;
  String? modifyTime;
  String? nickName;
  int? recommendUserId;
  bool? resetFlag;
  String? securityPassword;
  int? showId;
  String? userTel;
  String? userUuid;
  String? rewardAmount;

  UserFriendListItemModel({
    this.addGroup,
    this.avatarImg,
    this.backGroundImg,
    this.bindFlag,
    this.briefIntroduction,
    this.chainAddress,
    this.createId,
    this.createTime,
    this.giftPermission,
    this.id,
    this.inviteCode,
    this.inviteNum,
    this.isCancellation,
    this.isDelete,
    this.isFreeze,
    this.isSm,
    this.isValid,
    this.lastLoginTime,
    this.levelId,
    this.modifyId,
    this.modifyTime,
    this.nickName,
    this.recommendUserId,
    this.resetFlag,
    this.securityPassword,
    this.showId,
    this.userTel,
    this.userUuid,
    this.rewardAmount,
  });

  UserFriendListItemModel.fromJson(Map<String, dynamic> json) {
    addGroup = json["addGroup"];
    avatarImg = json["avatarImg"];
    backGroundImg = json["backGroundImg"];
    bindFlag = json["bindFlag"];
    briefIntroduction = json["briefIntroduction"];
    chainAddress = json["chainAddress"];
    createId = json["createId"];
    createTime = json["createTime"];
    giftPermission = json["giftPermission"];
    id = json["id"];
    inviteCode = json["inviteCode"];
    inviteNum = json["inviteNum"];
    isCancellation = json["isCancellation"];
    isDelete = json["isDelete"];
    isFreeze = json["isFreeze"];
    isSm = json["isSm"];
    isValid = json["isValid"];
    lastLoginTime = json["lastLoginTime"];
    levelId = json["levelId"];
    modifyId = json["modifyId"];
    modifyTime = json["modifyTime"];
    nickName = json["nickName"];
    recommendUserId = json["recommendUserId"];
    resetFlag = json["resetFlag"];
    securityPassword = json["securityPassword"];
    showId = json["showId"];
    userTel = json["userTel"];
    userUuid = json["userUuid"];
    rewardAmount = json["rewardAmount"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["addGroup"] = addGroup;
    _data["avatarImg"] = avatarImg;
    _data["backGroundImg"] = backGroundImg;
    _data["bindFlag"] = bindFlag;
    _data["briefIntroduction"] = briefIntroduction;
    _data["chainAddress"] = chainAddress;
    _data["createId"] = createId;
    _data["createTime"] = createTime;
    _data["giftPermission"] = giftPermission;
    _data["id"] = id;
    _data["inviteCode"] = inviteCode;
    _data["inviteNum"] = inviteNum;
    _data["isCancellation"] = isCancellation;
    _data["isDelete"] = isDelete;
    _data["isFreeze"] = isFreeze;
    _data["isSm"] = isSm;
    _data["isValid"] = isValid;
    _data["lastLoginTime"] = lastLoginTime;
    _data["levelId"] = levelId;
    _data["modifyId"] = modifyId;
    _data["modifyTime"] = modifyTime;
    _data["nickName"] = nickName;
    _data["recommendUserId"] = recommendUserId;
    _data["resetFlag"] = resetFlag;
    _data["securityPassword"] = securityPassword;
    _data["showId"] = showId;
    _data["userTel"] = userTel;
    _data["userUuid"] = userUuid;
    _data["rewardAmount"] = rewardAmount;
    return _data;
  }
}
